package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;

import javax.persistence.Entity;
import javax.persistence.Table;

import jsyf.oa.ientity.BaseEntity;

/**
 * Created by 92852 on 2018/8/2.
 */
@Entity
@Table(name = "t_sys_user_achievements", schema = "oa", catalog = "")
public class UserAchievementsEntity extends BaseEntity {
    private String bigAreaId;
    private Integer bigManagerTargerNum;
    private Integer managerTargerNum;
    private String createUserId;

    public String getBigAreaId() {
        return bigAreaId;
    }

    public void setBigAreaId(String bigAreaId) {
        this.bigAreaId = bigAreaId;
    }

    public Integer getBigManagerTargerNum() {
        return bigManagerTargerNum;
    }

    public void setBigManagerTargerNum(Integer bigManagerTargerNum) {
        this.bigManagerTargerNum = bigManagerTargerNum;
    }

    public Integer getManagerTargerNum() {
        return managerTargerNum;
    }

    public void setManagerTargerNum(Integer managerTargerNum) {
        this.managerTargerNum = managerTargerNum;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("BIG_AREA_ID", getBigAreaId());
        obj.put("BIG_MANAGER_TARGER_NUM", getBigManagerTargerNum());
        obj.put("MANAGER_TARGET_NUM", getManagerTargerNum());
        obj.put("CREATE_TIME", getCreateTime());
        obj.put("CREATE_USER_ID", getCreateUserId());
        return obj;
    }

    @Override
    public String getTableName() {
        return "t_sys_user_achievements";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID","id");
        obj.put("BIG_AREA_ID","bigAreaId");
        obj.put("BIG_MANAGER_TARGER_NUM", "bigManagerTargerNum");
        obj.put("MANAGER_TARGET_NUM","managerTargerNum");
        obj.put("CREATE_TIME","createTime");
        obj.put("CREATE_USER_ID","createUserId");
        return obj;
    }

}
